#!/usr/bin/env python
#coding: utf-8


import pg

class DB_crawl(pg.DB):
	
	def __init__(self,config=None):

		pg.DB.__init__(self,'search','localhost',5432,None,None,'search','search11')
		self.query("""SET DATESTYLE TO 'ISO'""")
	def addRecord(self,car):
		sql= ""


if __name__=="__main__":		
	db = DB_crawl()
	
	print db.get_databases()	
	print db.get_tables()
	list={'city_id':2595,"city_name":'hangzhou','post':34242}
	db.insert('city',list)


